﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XiaoYuStock.Core
{
    /// <summary>
    ///   autor：tiny
    ///  time：2018-06-20
    ///  description：请求结果状态码
    /// </summary>
    public enum ApiResultCode : int
    {
        /// <summary>
        /// 请求成功
        /// </summary>
        Success = 200,

        /// <summary>
        /// 请求错误
        /// </summary>
        Error = 400,

        /// <summary>
        /// 请求异常
        /// </summary>
        Exception = 500
    }

    /// <summary>
    ///  autor：tiny
    ///  time：2018-06-20
    ///  description：请求结果子状态码
    /// </summary>
    public enum ApiResultSubCode : int
    {
        Ok = 201
    }
}
